<?php
/*
 * Created on 22.12.2005
 *
 */

// TODO add target attribute, if validate name is required
class ajax_dojoHandler
{
    
    var $name = null;

    function startElement (& $sender, $attrs)
    {
        $sender->appendCode('$out->write(\'<script type="text/javascript" src="\'.MODEL2_DOJO_URL.\'dojo.js"></script><script type="text/javascript" src="\'.MODEL2_JSEXTRAS_URL.\'phpinchainsextras.js"></script><script language="JavaScript" type="text/javascript">
<!--
\');'."\n");
    }

    function endElement (& $sender)
    {
        $sender->appendCode('$out->write("\n//--></script>");'."\n");
    }

}

?>